#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2014 zqhz
#
from forms.forms import myForm

form = myForm(data={'UserId': '001', 'UserName': 'test'})
if not form.validate():
    print 'not validate.'
else:
    print form.UserId.data, form.UserName.data